/**
 * index.js
 * @author SoChishun
 * @version 1.0 <2015-3-23>
 * @since 1.0.0.0 <2015-3-23> SoChishun Added.
 */

// 表单验证 2015-3-23
$('#frm-login').validate({
    errorElement: "em",
    rules: {
        login_name: {required: true, minlength: 3, maxlength: 16},
        password: {required: true, minlength: 1, maxlength: 32}
    }
});


/**
 * 刷新验证码
 * @param {type} a
 * @returns {Boolean}
 * @since 1.0 <2015-4-17> SoChishun Added.
 */
function refresh_captcha(a){
    var $img=$(a).find('img');
    $img.attr('src',$img.attr('src'));
    return false;
}